//
//  MeCenterItemCell.m
//  Ev_Master
//
//  Created by Evan on 2019/9/26.
//  Copyright © 2019 Evan. All rights reserved.
//

#import "MeCenterItemCell.h"

@implementation MeCenterItemCell

+ (instancetype)cellWithTableView:(UITableView *)tableView  IndexPath:(NSIndexPath *)indexPath{
    NSString *Service = [NSString stringWithFormat:@"MeCenterItemCell_%ld_%ld",indexPath.section,indexPath.row];
    MeCenterItemCell *cell = [tableView dequeueReusableCellWithIdentifier:Service];
    if (cell == nil) {
        [ tableView registerNib:[UINib nibWithNibName:@"MeCenterItemCell" bundle:nil] forCellReuseIdentifier:Service];
        cell = [tableView dequeueReusableCellWithIdentifier:Service];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (IBAction)btnClick:(id)sender {
    UIButton *btn =(UIButton*)sender;
    self.blockBtnClick(btn.tag);
}


@end
